package com.ext.aic.beans.box;

import java.io.Serializable;

import io.objectbox.annotation.Entity;
import io.objectbox.annotation.Id;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Entity
public class ReplyRequestLog implements Serializable {

    @Id(assignable = true)
    private long id;

    //请求数据
    private String request;

    //响应数据
    private String response;

    //0-请求成功并正确解析;
    //1-请求成功并解析到的内容为空（自动关闭聊天窗口）;
    //2-请求成功并但已提前退出聊天窗口
    //3-请求成功但状态码非200
    //4-网络层的状态码非在正常的200~300范围内，属httpclient层异常当失败处理
    //5-httpclient响应异常
    private int status;

    //原因
    private String reasons;

    //记录时间
    private long recordTime;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }
}
